import Vue from 'vue'

export default {
  searchUserRightsService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.selectuserrights,config).then(r=>{
      callback(r.data);
    });
  },
  editUserRightsService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.edituserrights,config).then(r=>{
      callback(r.data);
    });
  },
  searchAllRightsService:function (config,callback){
    Vue.axios.post(Vue.prototype.$g.selectallrights,config).then(r=>{
      callback(r.data);
    });
  },

}